package top.yangbuyi.service;

import top.yangbuyi.domain.CareHistory;
import top.yangbuyi.domain.Registration;
import com.baomidou.mybatisplus.extension.service.IService;
import top.yangbuyi.dto.CareHistoryDto;
import top.yangbuyi.dto.RegistrationDto;
import top.yangbuyi.vo.DataGridView;

import java.util.List;

public interface RegistrationService extends IService<Registration>{

	/**
	 * @Description: 分页查询挂号信息
	 * @Param: registrationDto 查询条件
	 * @Return: DataGridView
	 * @Author: campsis-tk
	 * @Date: 2020/9/15
	 */
    DataGridView queryRegistrationForPage(RegistrationDto registrationDto);

    /**
     * @Description: 根据挂号ID查询挂号信息
     * @Param: registrationId 挂号单号
     * @Return: Registration
     * @Author: campsis-tk
     * @Exception:
     * @Date: 2020/9/15
     */
	Registration queryRegistrationByRegId(String registrationId);

	/**
	 * @Description: 根据挂号ID更新挂号单信息
	 * @Param: registration 挂号实体
	 * @Return: int 影响行数
	 * @Author: campsis-tk
	 * @Date: 2020/9/15
	 */
	int updateRegistrationById(Registration registration);


	/**
     * @Description: 根据条件查询挂号的信息
     * @Param: deptId   部门ID
     * @Param: subsectionType   时段
     * @Param: scheudlingType   类型：门诊/急诊
     * @Param: regStatus    挂号状态
     * @Param: userId   用户ID
     * @Return: List<Registration>
     * @Author: campsis-tk
     * @Date: 2020/9/15
     */
	List<Registration> queryRegistration(Long deptId, String subsectionType, String scheudlingType, String regStatus, Long userId);

	/**
	 * @Description: 添加挂号
	 * @Param: registrationDto
	 * @Author: campsis-tk
	 * @Date: 2020/9/16
	 */
    void addRegistration(RegistrationDto registrationDto);

//    Registration queryRegistrationByRegId(String regId);
//
//    int updateRegistrationById(Registration registration);
}
